package bai6.model;

import java.text.ParseException;

import bai6.service.implement.EmployeeDAO;

public class Employee extends People{
	private String date;
	private String dc;
	private String gt;
	private String startDate;
	private String cv;
	private String username;
	private String email;


	public Employee(int id, String name, int luong, String date, String dc,
			String gt, String startDate, String cv, String username,
			String email) {
		super(id, name, luong);
		this.date = date;
		this.dc = dc;
		this.gt = gt;
		this.startDate = startDate;
		this.cv = cv;
		this.username = username;
		this.email = email;
	}
	EmployeeDAO dao=new EmployeeDAO();
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getDc() {
		return dc;
	}
	public void setDc(String dc) {
		this.dc = dc;
	}
	public String getGt() {
		return gt;
	}
	public void setGt(String gt) {
		this.gt = gt;
	}
	public String getStartDate() {
		return startDate;
	}
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	public String getCv() {
		return cv;
	}
	public void setCv(String cv) {
		this.cv = cv;
	}
	public String getUsername() {
		return username;
	}
	public int getLuong() throws ParseException {
		return super.getLuong()+dao.pcThamnien(dao.pcThamNien(date));
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public void display() throws ParseException{
		super.display();
		System.out.println("Ten da duoc nhap");
		System.out.println("Ngay da duoc nhap");
		System.out.println("Chuc vu da duoc nhap");
		System.out.println("Luong :" +getLuong());
	}	
}
